#ifndef HOMEPAGE_H
#define HOMEPAGE_H

#include <QWidget>
#include <QTreeWidget>
#include <QStackedWidget>
#include "doctorsindepartmentpage.h"
#include "registrationpage.h"
#include "../Entities/User.h"
#include "../Entities/Doctor.h"

class HomePage : public QWidget {
    Q_OBJECT

public:
//    explicit HomePage(QWidget *parent = nullptr, User *user);
    explicit HomePage(User *user = nullptr, QWidget *parent = nullptr);
    explicit HomePage(Doctor *doctor = nullptr,QWidget *parent = nullptr);
    explicit HomePage(int curentID,QString &role, QWidget *parent = nullptr);

private slots:
    void logout();

signals:
   void userLoggedOut();
   void MyappointLoad(int id);
   void DepartLoad();

private:
    QStackedWidget *stackedWidget;
    User*user;
    Doctor* doctor;
    int currentID;
    QString role;
//    DoctorsInDepartmentPage *doctorsPage ;
};

#endif // HOMEPAGE_H
